@extends('admin.layouts.index')
@section('title', '用户注册统计')

@section('content')
<div class="row">
    <div class="col-md-12">
        <div class="card">
            <div class="card-body">
                <form class="m-search" method="GET" action="{{ URL::current() }}">
                    <div class="m-search-items">
                        <div class="m-search-item">
                            <label>搜索时间</label>
                            <input type="text" name="date" placeholder="时间格式为:2021-03" value="{{ date('Y-m',time()) }}">
                        </div>
                        <div class="m-search-item">
                            <button class="button">立即搜索</button>
                        </div>
                    </div>
                    <div class="m-search-handle">
                        <a class="button m-btn-light" href="javascript:;">
                            共{{ $totalusers }}人
                        </a>
                    </div>
                </form>
                <div style="width:100%;height: 400px;">
                    {!! $chart["chart"]->container() !!}
                    <script src="/assets/js/Chart.min.js"></script>
                    {!! $chart["chart"]->script() !!}
                </div>
            </div>
        </div>
    </div>
</div>

@endsection
